package org.shoukaiseki.supersaiyan.enums;


import org.shoukaiseki.kakaroto.Interface.DictTypeEnumData;
import org.shoukaiseki.kakaroto.annotation.DictTypeEnum;
import org.shoukaiseki.kakaroto.entity.BaseDictEnum;
import org.shoukaiseki.kakaroto.enums.DictDataCssClass;

//@DictTypeEnum(dictType = "inventory_requestFlag",dictName = "是否需要物料请求标识")
public enum InventoryRequestFlag implements DictTypeEnumData {

    none(new BaseDictEnum()
            .setValue(0)
            .setLabel("无")
            .setCssClass(DictDataCssClass.dictTextTagSuccess)
            .setRemark("不需要领用")),
    needStart(new BaseDictEnum()
            .setValue(1)
            .setLabel("需要")
            .setCssClass(DictDataCssClass.dictTextTagDanger)
            .setRemark("需要从仓库领用,库存不足则需要采购")),
    needEnd(new BaseDictEnum()
            .setValue(2)
            .setLabel("不再需要")
            .setCssClass(DictDataCssClass.dictTextTagSuccess)
            .setRemark("不再需要从仓库领取(订单已完结等)")),
    //暂未使用
    needStartWappr(new BaseDictEnum()
            .setValue(4)
            .setLabel("需要,等待审核批准")
            .setCssClass(DictDataCssClass.dictTextTagSuccess)
            .setRemark("需要从仓库领用,需要审核批准后生效")),
    ;

    private BaseDictEnum dictEnum;

    private InventoryRequestFlag(BaseDictEnum dictEnum) {
        this.dictEnum=dictEnum;
    }


    @Override
    public BaseDictEnum getDictEnum() {
        return dictEnum;
    }


}
